package com.babyqiao.wallpaper.common.ordervo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户订单类VO 远程调用使用
 *
 * @author QLZ
 * @date 2021/1/6
 */
public class WallpaperOrderVo {
    /**
     * id
     */
    private String id;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 订单金额（折扣后）
     */
    private BigDecimal totalFee;

    /**
     * 应付金额（折扣前）
     */
    private BigDecimal payableFee;
    /**
     * 支付类型
     */
    private String payType;
    /**
     * status 订单状态
     */
    private String status;


    /**
     * 同步至账户余额 0 未同步 1已同步
     */
    private Integer syncBalance;

    /**
     * deleted 逻辑删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /**
     * 账户余额
     */
    private BigDecimal balance;


    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public BigDecimal getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(BigDecimal totalFee) {
        this.totalFee = totalFee;
    }

    public BigDecimal getPayableFee() {
        return payableFee;
    }

    public void setPayableFee(BigDecimal payableFee) {
        this.payableFee = payableFee;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getSyncBalance() {
        return syncBalance;
    }

    public void setSyncBalance(Integer syncBalance) {
        this.syncBalance = syncBalance;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "WallpaperOrderVo{" +
                "id='" + id + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", userId='" + userId + '\'' +
                ", username='" + username + '\'' +
                ", totalFee=" + totalFee +
                ", payableFee=" + payableFee +
                ", payType='" + payType + '\'' +
                ", status='" + status + '\'' +
                ", syncBalance=" + syncBalance +
                ", deleted=" + deleted +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", balance=" + balance +
                '}';
    }
}
